Optimal. Leaf size=25 \[ -\frac{b (b \sec (e+f x))^{n-1}}{f (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0333282, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {2622, 30} \[ -\frac{b (b \sec (e+f x))^{n-1}}{f (1-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2622
Rule 30
Rubi steps
\begin{align*} \int (b \sec (e+f x))^n \sin (e+f x) \, dx &=\frac{b \operatorname{Subst}\left (\int x^{-2+n} \, dx,x,b \sec (e+f x)\right )}{f}\\ &=-\frac{b (b \sec (e+f x))^{-1+n}}{f (1-n)}\\ \end{align*}
Mathematica [A] time = 0.0211982, size = 22, normalized size = 0.88 \[ \frac{b (b \sec (e+f x))^{n-1}}{f (n-1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.029, size = 120, normalized size = 4.8 \begin{align*}{ \left ({\frac{1}{f \left ( -1+n \right ) }{{\rm e}^{n\ln \left ({b \left ( 1+ \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) \left ( 1- \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) ^{-1}} \right ) }}}-{\frac{1}{f \left ( -1+n \right ) } \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2}{{\rm e}^{n\ln \left ({b \left ( 1+ \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) \left ( 1- \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) ^{-1}} \right ) }}} \right ) \left ( 1+ \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{2} \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00783, size = 38, normalized size = 1.52 \begin{align*} \frac{b^{n} \cos \left (f x + e\right )^{-n} \cos \left (f x + e\right )}{f{\left (n - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64906, size = 58, normalized size = 2.32 \begin{align*} \frac{\left (\frac{b}{\cos \left (f x + e\right )}\right )^{n} \cos \left (f x + e\right )}{f n - f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (b \sec{\left (e + f x \right )}\right )^{n} \sin{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (b \sec \left (f x + e\right )\right )^{n} \sin \left (f x + e\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]